<?php get_header();?>
<?php 
    $pageIndexId = 55;
    $filedObj = get_fields($pageIndexId)["post_id"];
?>
<div class="index">
    <ul>
        <?php
            $args = array(
                'post_type' => 'post',
                'post_status' => 'publish',
                'post__in' => explode(',',$filedObj)
                );
            $wp_query = new WP_Query($args);
                while($wp_query -> have_posts()):$wp_query -> the_post();
                    if(get_fields()):
        ?>
                    <li class="vSlide-slide">
                        <a class="img-link" href="<?php the_field('link_url'); ?>">
                            <img src="<?php the_field('img'); ?>">
                        </a>
                    </li>
        <?php endif;endwhile;wp_reset_query();?>    
    </ul>
    <div class="vSlide-pagination">
    </div>
</div>

<script src='<?php bloginfo('template_url'); ?>/lib/_require.js' data-main='<?php bloginfo('template_url'); ?>/js/index.js'></script>

<?php get_footer();?>
